package com.tuniu.agents.common.logger;

import com.tuniu.agents.message.AgentLogger;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AgentLoggingService for logging activities
 */
@Service(AgentLoggingService.BEAN_NAME)
public class AgentLoggingService implements AgentLogger {

    public static final String BEAN_NAME = "agentLoggingService";

    /**
     * This method is called before the main action.
     * @param conversationId The ID of the conversation
     * @param message The message object
     * @return A list of log messages
     */
    public List<String> before(String conversationId, Object message) {
        return List.of("AgentLoggingService Before: Method execution, Conversation ID: " + conversationId);
    }

    @Override
    public List<String> after(String conversationId, Object messages, Object result) {
        return List.of("AgentLoggingService After: Method execution, Conversation ID: " + conversationId);
    }

}
